package arch.service.impl.manager;

import java.lang.reflect.Method;
import java.util.Map;

import arch.util.ServerLoggerUtils;

/**
 * 
 * @author <a mailto="wanglong635@126.com">Long</a>
 *
 */
public class ArchLoggerRunnable implements Runnable{
	private Method method;
	private Map<String,Object> param;
	private Map<String,Object> result;
	
	public ArchLoggerRunnable(Method method,Map<String,Object> param,Map<String,Object> result){
		this.method = method;
		this.param = param;
		this.result = result;
	}
	
	public void run() {
		try {
			ServerLoggerUtils.logger(method, param, result);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
		
	}

}
